package com.rfy.framework.util;

import java.io.UnsupportedEncodingException;

/**
 * @author zhanghuiyong
 * @创建时间 2019年03月02日
 * @描述: 编码转换工具
 **/

public class ByteHandUtil {

    /**
     * GBK转换为UTF-8
     */
    public static String handUTF8(String strGBK) {
        String strutf8 = null;
        try {
            strutf8 = new String(strGBK.getBytes("UTF-8"), "UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return strutf8;

    }

}
